#include "stdio.h"

int countDistinctWord(char s[]) {
	//在此处添加相应代码
	char t='0';
	int b,i=0;
	for(int i=0;i<100;i++){
		if(s[i]>s[i+1]){
			t=s[i];
			s[i]=s[i+1];
			s[i+1]=t;
		}
	}
	for(int i=0;i<100;i++){
		if(s[i]!=s[i+1])
			b++;
	}
	return b;
}



int main(void) {
	char s[] = "a b c def asg da fe d c b";
	printf("%d", countDistinctWord(s));
	scanf("%d");
	return 0;
}
